package string;

public class StartsWithDemo {
    public static void main(String[] args) {
        String str = "what's your name ?";
        boolean a = str.startsWith("w");
        boolean b = str.startsWith("ded");
        boolean c = str.startsWith(" ");
        boolean d = str.endsWith("?");
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
    }
}
